package com.margo.project.append.dao;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;

@Component
public class GoodsDao {
	@Autowired
	private JdbcTemplate jdbcTemplate;
	
	public int getGoods() {
		Map<String, Object> result= jdbcTemplate.queryForMap("select * from t_goods where t_goods.id=2014");
		return result.size();
	}
}
